﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Bildschirmpause.SettingsWindow"
        Title="Settings" Height="160" Width="310" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" Margin="0" BorderThickness="0,0,5,5" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
	<Grid>
		<Border BorderBrush="#FFB1B1B1" BorderThickness="3" CornerRadius="30" Background="Black" MouseLeftButtonDown="Border_MouseLeftButtonDown">
			<Border.Effect>
				<DropShadowEffect/>
			</Border.Effect>
		</Border>
		<Grid Margin="20,10,0,0">
			<Grid.RowDefinitions>
				<RowDefinition Height="0.33*"/>
				<RowDefinition Height="0.33*"/>
				<RowDefinition Height="0.33*"/>
			</Grid.RowDefinitions>
			<StackPanel>
				<StackPanel Orientation="Horizontal">
					<Label Content="after" VerticalAlignment="Center" Foreground="White" FontFamily="Comic Sans MS" FontSize="13.333"/>
					<TextBox x:Name="DurationTextBox" Style="{DynamicResource SimpleTextBox}" TextWrapping="Wrap" Text="{Binding WorkTimeBase, Mode=TwoWay}" VerticalAlignment="Center" IsReadOnly="True" Background="#FFC2C2C2" Width="30" Padding="0,1" Height="22"/>
					<Label Content="minutes ..." VerticalAlignment="Center" Foreground="White" FontFamily="Comic Sans MS" FontSize="13.333"/>
					<ComboBox x:Name="IntervalComboBox" Style="{DynamicResource SimpleComboBox}" VerticalAlignment="Center" Margin="10,0,0,0" Width="110" SelectionChanged="IntervalComboBox_SelectionChanged">
                        <ComboBoxItem Content="---" Style="{DynamicResource SimpleComboBoxItem}"/>
						<ComboBoxItem Content="50min / 10min" Style="{DynamicResource SimpleComboBoxItem}" IsSelected="True"/>
						<ComboBoxItem Content="100min / 20min" Style="{DynamicResource SimpleComboBoxItem}"/>
                    </ComboBox>
				</StackPanel>
				<Slider x:Name="DurationSlider" Style="{DynamicResource SimpleSlider}" Margin="0,0,15,0" Maximum="120" Minimum="1" SmallChange="1" Value="{Binding WorkTimeBase, Mode=TwoWay}" IsSnapToTickEnabled="True">
					<Slider.Background>
						<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
							<GradientStop Color="White" Offset="0"/>
							<GradientStop Color="#FF525252" Offset="1"/>
						</LinearGradientBrush>
					</Slider.Background>
				</Slider>
			</StackPanel>
			<StackPanel Grid.Row="1">
				<StackPanel Orientation="Horizontal">
					<Label Content="..." VerticalAlignment="Center" Foreground="White" FontFamily="Comic Sans MS" FontSize="13.333"/>
					<TextBox x:Name="BreakTextBox" Style="{DynamicResource SimpleTextBox}" TextWrapping="Wrap" Text="{Binding BreakTimeBase, Mode=TwoWay}" VerticalAlignment="Center" IsReadOnly="True" Background="#FFC2C2C2" FontFamily="Comic Sans MS" FontSize="13.333" Width="28" Padding="0,1" Height="22"/>
					<Label Content="minutes of break" VerticalAlignment="Center" Foreground="White" FontFamily="Comic Sans MS" FontSize="13.333"/>
					<CheckBox x:Name="ResetTimerCheckBox" Content=" Reset Timer" Style="{DynamicResource SimpleCheckBox}" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="White" FontFamily="Comic Sans MS" FontSize="13.333" IsChecked="True"/>
				</StackPanel>
				<Slider x:Name="BreakSlider" Style="{DynamicResource SimpleSlider}" Margin="0,0,15,0" Maximum="30" Minimum="1" SmallChange="1" Value="{Binding BreakTimeBase, Mode=TwoWay}" IsSnapToTickEnabled="True">
					<Slider.Background>
						<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
							<GradientStop Color="White" Offset="0"/>
							<GradientStop Color="#FF525252" Offset="1"/>
						</LinearGradientBrush>
					</Slider.Background>
				</Slider>
			</StackPanel>
			<Button Content="Save..." HorizontalAlignment="Center" Style="{DynamicResource SimpleButton}" VerticalAlignment="Center" Width="105" Grid.Row="2" Height="30" Margin="-20,0,0,0" Click="Button_Click" Foreground="White" BorderThickness="2,2,5,5" VerticalContentAlignment="Top" Padding="1,3,1,1" FontFamily="Comic Sans MS" FontSize="14.667">
                <Button.Background>
					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
						<GradientStop Color="Black" Offset="0"/>
						<GradientStop Color="#FF373737" Offset="1"/>
					</LinearGradientBrush>
				</Button.Background>
				<Button.BorderBrush>
					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
						<GradientStop Color="Silver" Offset="0"/>
						<GradientStop Color="White" Offset="1"/>
					</LinearGradientBrush>
				</Button.BorderBrush>
			</Button>
		</Grid>
	</Grid>
</Window>
